home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 8: LINUX Games / Linux Cubed Series 8 - LINUX Games.iso / games / video / fly8111-.000 / fly8111- / fly8 / DJGPP / makedj < prev    next >
Text File  |  1995-09-09  |  873b  |  51 lines

  1. # makefile
  2. #
  3. # This is part of the flight simulator 'fly8'.
  4. # Author: Eyal Lebedinsky (eyal@ise.canberra.edu.au).
  5. #
  6.  
  7. #
  8. # machine specific makefile for msdos, djgpp
  9. #
  10.  
  11. # remove -DUSE_ASMLINE for no-ASM line drawing.
  12. #
  13. CFLAGS= $(XFLAGS) -I.. -I. -DUSE_ASMLINE
  14.  
  15. COBJS1=    drivers.o console.o timer.o djgpp.o misc.o mouse.o stick.o dosstick.o
  16. COBJS2=    grasm.o bgr.o low.o grdj.o grstat.o plsound.o plspeak.o
  17.  
  18. AOBJS=    ints.o bgrasm.o
  19.  
  20. COBJS=    $(COBJS1) $(COBJS2)
  21. OBJS=    $(COBJS) $(AOBJS)
  22.  
  23. HFILES=    ../fly.h config.h
  24.  
  25. .SUFFIXES:    .o .x
  26.  
  27. .x.o:
  28.     echo $(CFLAGS) -x c -E >cpp.rsp
  29.     gcc @cpp.rsp $*.x >$*.s
  30.     del cpp.rsp
  31.     gcc $(CFLAGS) -c $*.s
  32.     del $*.s
  33.  
  34. all:        fly8sys.a
  35.  
  36. fly8sys.a:    $(OBJS)
  37.     del fly8sys.a
  38.     ar q fly8sys.a $(COBJS1)
  39.     ar q fly8sys.a $(COBJS2)
  40.     ar q fly8sys.a $(AOBJS)
  41.     ranlib fly8sys.a
  42.  
  43. $(COBJS):    $(HFILES)
  44. stick.o:    stick.h
  45. dosstick.o:    stick.h
  46.  
  47. clean:
  48.     del *.o
  49.     del *.a
  50.     del *.s
  51.